package java101;

public class FarmerProgram {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		int total = 0;
		for (int cow = 0; cow <= 10000/1500; cow++) {
			for (int pig = 0; pig <=10000/100; pig++) {
				for (int chicken = 0; chicken <= 10000/25; chicken++) {
					if ((cow * 1500) + (pig * 100) + (chicken * 25) == 10000 && cow + pig + chicken == 100 && cow != 0) {
						total++;
						System.out.println("The farmer sold " + cow + " cows, " + pig + " pigs, and " + chicken + " chickens.");
					}
												
				}
			}
		}


		
	}

}

